Skip to content

fix: namespace DataVolume names per VM to prevent collisions#47

Merged
mrhillsman merged 1 commit into
mainfrom
fix/datavolume-namespace-collision
May 21, 2026
Merged

fix: namespace DataVolume names per VM to prevent collisions#47
mrhillsman merged 1 commit into
mainfrom
fix/datavolume-namespace-collision

Conversation

@mrhillsman

Copy link
Copy Markdown
Contributor

DataVolume template names in disk.go and database.go were hardcoded without incorporating the VM instance name. When deploying multiple VMs via --vm-count > 1, all VMs referenced the same DataVolume name, causing Kubernetes API resource conflicts.

This commit introduces a namespaceDataVolumes helper function that appends the VM name to DataVolume template names and updates the corresponding volume references. The function is called in both single-VM and multi-VM workload paths to ensure unique names.

Fixes #3

@exe-prow-github-app exe-prow-github-app Bot requested review from komish and makon57 May 20, 2026 20:45
@exe-prow-github-app

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mrhillsman

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@exe-prow-github-app exe-prow-github-app Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 20, 2026
@mrhillsman mrhillsman force-pushed the fix/datavolume-namespace-collision branch from 0152fbd to e5c949c Compare May 20, 2026 20:57
DataVolume template names in disk.go and database.go were hardcoded
without incorporating the VM instance name. When deploying multiple
VMs via --vm-count > 1, all VMs referenced the same DataVolume name,
causing Kubernetes API resource conflicts.

This commit introduces a namespaceDataVolumes helper function that
appends the VM name to DataVolume template names and updates the
corresponding volume references. The function is called in both
single-VM and multi-VM workload paths to ensure unique names.

Fixes #3

Signed-off-by: Melvin Hillsman <mhillsma@redhat.com>
@mrhillsman mrhillsman force-pushed the fix/datavolume-namespace-collision branch from e5c949c to 381195d Compare May 21, 2026 23:19
@mrhillsman mrhillsman merged commit 2636455 into main May 21, 2026
3 of 4 checks passed
@mrhillsman mrhillsman deleted the fix/datavolume-namespace-collision branch May 22, 2026 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: DataVolume names are not namespaced per VM — will collide on multi-VM deployments

1 participant